<template>
    <div>
        <button @click="emit('click')">点击</button>
    </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
    name: 'Count'
})
</script>
<script lang="ts" setup>
const emit = defineEmits<{
    (event: "click"): void
}>()
</script>

<style lang="less" scoped>

</style>